package com.chentf.creational.factory.simple_factory;

/**
 * 客户端测试类
 * @author chentf
 * @date 2025-3-25 08:58:42
 */
public class Client {

    public static void main(String[] args) {
        // 1. 创建咖啡店类
        CoffeeStore store = new CoffeeStore();
        // 2. 点咖啡
        Coffee coffee = store.orderCoffee("american");
        System.out.println(coffee.getName());
    }
}
